<template>
  <div>
    <button @click="setAge">child2修改child1中的age数据</button>
  </div>
</template>

<script>
export default {
  methods: {
    setAge() {
      this.$bus.$emit("age", 1);
    },
  },
};
</script>

<style lang="scss" scoped>
</style>